pp108 : onaftersort Event

onaftersort Event


This event is executed after rows are sorted in a grid. For this event to be executed, you must set thesortableproperty totrue.

Syntax

Inline HTML
<div cordysType="wcp.library.ui.XGrid" id="xgridId" onaftersort="handler()">
...
</div>
Event property xgridId.onaftersort = handler


Event Information

To invoke Rows can be sorted by clicking the header cell of a column, or using the header context menu.
Default Action Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property Description
data The XML data node basis for the content of XGrid.
columnId Read-only. Refers to the identifier of the column for which the event is executed.
sortOrder Read-only. String that refers to the 'ascending' or 'descending' sort order.


Example


To view an example, see onbeforesort.

See Also


xgrid, onbeforesort, setSortable(), getSortable()